package cn.schoolwow.quickdao.test.module.business.user.dml.user.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.edit.common.CheckUpdateUserResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.edit.save.SaveUserFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class SaveUserTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new AddUserTestCaseFlow())
                .next(new SaveUserFlow())
                .next(new CheckUpdateUserResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "保存更新用户测试用例";
    }
}
